#include "HashHelper.h"

#define TABLE_SIZE 1024

//public class HashHelper

int HashHelper::hash(const char *name)
{
  const char *s;
  int c, k;

  //    assert(name && *name);
  s = name;
  k = *s;
  while ((c = *++s) != 0)
    k = (31 * k + c) & (TABLE_SIZE - 1);

  return (k);
}


